package MV_BMP// ActionScript file
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;

	/**
	 *由矢量图转换而成的位图类 
	 * @author 葛增文
	 * 
	 */	
	public class DisplayObject_BMP extends Bitmap
	{
		private var _transSprite:Sprite;
		public function DisplayObject_BMP(transSprite:Sprite):void
		{
			this._transSprite=transSprite;
			this.init();
		}
		
		/**
		 *初始化 
		 * 
		 */		
		private function init():void
		{
			this.bitmapData=new BitmapData(this.transSprite.width,this.transSprite.height,true,0);
			this.bitmapData.draw(this.transSprite);
		}

		/**
		 *获取变化对象 
		 * @return 
		 * 
		 */		
		public function get transSprite():Sprite
		{
			return _transSprite;
		}

	}
}